import Vue from 'vue'
import VueRouter from 'vue-router'
// import LoginView from '../views/login.vue'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'login',
		component: () => import('@/views/login.vue')
	},
	{
		path: '/home',
		name: 'home',
		component: () => import('@/views/home/index.vue')
	},
	{
		path: '/community',
		name: 'community',
		component: () => import('@/views/community/index.vue')
	},
	{
		path: '/analysis',
		name: 'analysis',
		component: () => import('@/views/analysis/index.vue')
	},
	{
		path: '/service',
		name: 'service',
		component: () => import('@/views/service/index.vue')
	},
	{
		path: '/mine',
		name: 'mine',
		component: () => import('@/views/mine/index.vue')
	},{
		path: '/service/record',
		name: 'record',
		component: () => import('@/views/service/record.vue')
	},{
		path: '/service/reservation',
		name: 'reservation',
		component: () => import('@/views/service/reservation.vue')
	},{
		path: '/service/pay',
		name: 'pay',
		component: () => import('@/views/service/pay.vue')
	},
]

const router = new VueRouter({
	routes
})
export default router
